package com.hdoit.ares.web.cbase;

import com.github.binarywang.wxpay.config.WxPayConfig;
import com.github.binarywang.wxpay.service.impl.WxPayServiceImpl;
import com.tennetcn.component.wechat.config.WechatConfigModel;

public class AppWechatPayService extends WxPayServiceImpl{
	
	public AppWechatPayService(){
		WechatConfigModel wcm = AppWechatConfiguration.getInstance().wechatConfigModel;
		
		WxPayConfig payConfig = new WxPayConfig();
		payConfig.setAppId(wcm.getAppId());
		payConfig.setMchId(wcm.getMchId());
		payConfig.setMchKey(wcm.getMchKey());
		payConfig.setNotifyUrl(wcm.getNotifyURL());
		payConfig.setTradeType(wcm.getTradeType());
		payConfig.setKeyPath(wcm.getKeyPath());
		
		setConfig(payConfig);
	}
}
